﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Mozhi.Abp.Core.Networks
{
    public interface IRemoteServiceClient
    {
        Task<T> GetAsync<T>(string serviceName, string url, bool useAccessToken = true);

        Task<RemotePageResult<T>> GetListAsync<T>(string serviceName, string url, bool useAccessToken = true);

        Task<T> PostAysnc<T>(string serviceName, string url, T data, bool useAccessToken = true);

        Task<T> PutAsync<T>(string serviceName, string url, bool useAccessToken = true);

        Task DeleteAsync(string serviceName, string url, bool useAccessToken = true);
    }
}
